package com.ydd.vo;

import com.ydd.dto.ArticleDTO;
import com.ydd.entity.YddArticle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Description TODO
 * Author itheima
 * Date 2023-05-2023/5/29 17:14
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "GET 文章详情数据", description = "null响应传输对象")
public class IndexShowVO implements Serializable {

    @ApiModelProperty("上一篇文章")
    private List<YddArticle> prev=new ArrayList<>();

    @ApiModelProperty("下一篇文章")
    private List<YddArticle> next=new ArrayList<>();


    @ApiModelProperty("文章详情数据")
    private ArticleVO info;


    @ApiModelProperty("推荐文章数据")
    private List<ArticleVO> recommend=new ArrayList<>();

}
